public class Assignment7_4Class {
    Integer i = 0;
    private String retStr = 'Hello 123 ';
    
    public PageReference displayRetStr(){
        retStr = ' Hello from function';
        return null;
    }
    
    public String getRetStr(){
        i = i + 1;        
        return retStr + i;
    }
}